<body></body>
<script>
function createFrame(url, name) {
  let frame = document.createElement('iframe');
  frame.name = name;
  frame.id = name;
  frame.src = url;
  document.body.appendChild(frame);
}
</script>